package com.bcxj.apidriver.controller;

import com.bcxj.apidriver.service.PayService;
import com.bcxj.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName: PayController
 * Package: com.bcxj.apidriver.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/24 14:47
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping("/pay")
public class PayController {

    @Autowired
    private PayService payService;


    /**
     * 司机推送支付消息给乘客
     * @param orderId
     * @param price
     * @param passengerId
     * @return
     */
    @PostMapping("/push-pay-info")
    public ResponseResult pushPayInfo(@RequestParam String orderId,
                                      @RequestParam String price,
                                      @RequestParam String passengerId) {
        return payService.pushPayinfo(orderId, price, passengerId);
    }
}
